package com.cskaoyan.mapper;


import com.cskaoyan.bean.Admin;
import com.cskaoyan.bean.AdminExample;
import com.cskaoyan.bean.AdminListVoBean;
import com.cskaoyan.bean.MarketRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

    //这个是adminList返回一个admin需要列表的方法
    List<AdminListVoBean> queryAdminListInList(@Param("order") String order, @Param("sort") String sort,@Param("username") String username);

    List<MarketRole> queryMarketRoleList();



//这个是用这个东西做一个实验
    List<Admin> selectByExample(AdminExample example);

    void insertAdminByAdminListVo(@Param("admin") AdminListVoBean admin);

    AdminListVoBean queryAdminByAdminListVo(AdminListVoBean admin);

    void updateByAdminListVo(AdminListVoBean admin);

    void deleteAdmin(AdminListVoBean admin);
}